package com.imooc.pojo.bo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @ClassName: SubmitOrderBO
 * @Package: com.imooc.pojo.bo
 * @Description: 用于创建订单的BO对象
 * @Date: 2021/7/15 11:16
 * @Author: sunzheng@beiming.com
 */
@ApiModel(value = "订单对象BO", description = "从客户端，由用户传入的订单数据封装在此entity中")
public class SubmitOrderBO {

  @ApiModelProperty(value = "用户id", name = "userId", example = "", required = true)
  private String userId;

  @ApiModelProperty(value = "规格id", name = "itemSpecIds", example = "1001,1002,1003", required = true)
  private String itemSpecIds;

  @ApiModelProperty(value = "地址id", name = "addressId", example = "", required = true)
  private String addressId;

  @ApiModelProperty(value = "支付方式", name = "payMethod", example = "支付宝或者微信", required = true)
  private Integer payMethod;

  @ApiModelProperty(value = "订单备注", name = "leftMsg", example = "不要洋葱", required = false)
  private String leftMsg;

  public String getUserId() {
    return userId;
  }

  public void setUserId(String userId) {
    this.userId = userId;
  }

  public String getItemSpecIds() {
    return itemSpecIds;
  }

  public void setItemSpecIds(String itemSpecIds) {
    this.itemSpecIds = itemSpecIds;
  }

  public String getAddressId() {
    return addressId;
  }

  public void setAddressId(String addressId) {
    this.addressId = addressId;
  }

  public Integer getPayMethod() {
    return payMethod;
  }

  public void setPayMethod(Integer payMethod) {
    this.payMethod = payMethod;
  }

  public String getLeftMsg() {
    return leftMsg;
  }

  public void setLeftMsg(String leftMsg) {
    this.leftMsg = leftMsg;
  }

  @Override
  public String toString() {
    return "SubmitOrderBO{" +
        "userId='" + userId + '\'' +
        ", itemSpecIds='" + itemSpecIds + '\'' +
        ", addressId='" + addressId + '\'' +
        ", payMethod=" + payMethod +
        ", leftMsg='" + leftMsg + '\'' +
        '}';
  }
}
